package day03;

import java.util.Scanner;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/9
 */
public class Test01 {
    public static void main(String[] args) {
        int fare = 500; // 飞机票价格
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入订票日期（日期格式为xx（1-12）.xx（01-31））：");
        double date = sc.nextDouble();
        if (date>=1.01&&date<=1.03||date>=5.01&&date<=5.03||date>=10.01&&date<=10.07){
            System.out.println("您应付票价"+fare+"元");
        }else {
            System.out.println("您应付票价"+fare*0.8+"元");
        }
    }
}
